﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 地区名
	/// </summary>
	public class DbZone
	{ 
		#region DbZone
		/// <summary>
		/// 
		/// </summary>
		public DbZone()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbZone(Int32 id)
		{
			this.id = id;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbZone(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["id"]),out id);
			int.TryParse(Convert.ToString(dr["countryId"]),out countryId);
			this.zoneName = Convert.ToString(dr["zoneName"]);
			this.zoneCode = Convert.ToString(dr["zoneCode"]);
			
		}
		#endregion
		
		
		#region Id
		private Int32 id;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 Id
		{
			get{ return id; }
			set{ id= value; }
		}
		#endregion
		
		#region CountryId
		private Int32 countryId;
		/// <summary>	 
		/// 
		/// </summary>
		public Int32 CountryId
		{
			get{ return countryId; }
			set{ countryId= value; }
		}
		#endregion
		
		#region ZoneName
		private System.String zoneName;
		/// <summary>	 
		/// 地区名
		/// </summary>
		public System.String ZoneName
		{
			get{ return zoneName; }
			set{ zoneName= value; }
		}
		#endregion
		
		#region ZoneCode
		private System.String zoneCode;
		/// <summary>	 
		/// 地区英文简写
		/// </summary>
		public System.String ZoneCode
		{
			get{ return zoneCode; }
			set{ zoneCode= value; }
		}
		#endregion

	}
}
